package com.example.demo.tree.t001;

/**
 * @ClassName TreeNode
 * @Description: TODO
 * @Author Administrator
 * @Date 2021/10/14 23:08
 * @Version V1.0
 **/
public class TreeNode {
    private int id;
    private int parentId;
    private String resourceName;
    private int weight;

    public TreeNode(int id, int parentId, String resourceName, int weight) {
        this.id = id;
        this.parentId = parentId;
        this.resourceName = resourceName;
        this.weight = weight;
    }

    public int getId() {

        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
}
